﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Repository;
using WZVTC.SoftDev.DDDFW.Domain.Specification;
using WZVTC.SoftDev.DDDFW.Domain.Core;
using WZVTC.SoftDev.DDDFW.EntityServices;
using Model;

namespace EntityServices
{
    public class 班级Service : BaseServices<班级>
    {
        public 班级Service(IUnitOfWork _context, 班级Repository _Repository) : base(_context, _Repository) { }
        public 班级 GetById(int id)
        {
            ISpecification<班级> sp = new DirectSpecification<班级>(x => x.Id == id);
            return base.GetByCondition(sp);
        }
    }
}
